export default {
  init: function() {
    return new Promise((resolve, reject) => {
      if (typeof window.EZUIKit !== undefined) {
        console.log('視頻初始化成功！')
        resolve(window.EZUIKit)
        return true
      }
      window.onload = function() {
        console.log('視頻初始化成功！')
        // eslint-disable-next-line
        resolve(window.EZUIKit)
      }
    })
  }
}
